package com.cqhfan.imservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cqhfan.core.domain.dto.PageDTO;
import com.cqhfan.pojo.im.dto.TogetherWatchMessageDTO;
import com.cqhfan.pojo.im.po.ImMessage;
import com.cqhfan.pojo.im.query.ChatHistoryQuery;
import com.cqhfan.pojo.im.vo.HistoryMessageVO;

/**
 * @author 眭传洪
 * @create 2025-08-16 2:17
 */
public interface ImMessageService extends IService<ImMessage> {

    void sendMessage(ImMessage body);

    void listenSendMsg(String msg);

    void sendGroupMessage(String msg, Long groupId, Long senderId);

    PageDTO<HistoryMessageVO> history(ChatHistoryQuery query);

    void togetherWatchHandler(TogetherWatchMessageDTO togetherWatchMessage);

}
